import com.nbsaas.boot.ad.api.apis.AdApi
import com.nbsaas.boot.ad.api.domain.request.AdSearch

def api=ctx.getBean(AdApi.class)
def search=new AdSearch();
if (param!=null&&param.title!=null){
    search.title=param.title;
}
def res=api.search(search)
return res;